package com.buaa.aimall.modelModule.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buaa.aimall.Utils.PageReturnResult;
import com.buaa.aimall.modelModule.DTO.FilterModelDTO;
import com.buaa.aimall.modelModule.DTO.GetModelListDTO;
import com.buaa.aimall.modelModule.Entity.ModelEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ModelService extends IService<ModelEntity> {
    boolean createModel(ModelEntity modelEntity, MultipartFile docFile);

    List<ModelEntity> getModelList(GetModelListDTO getModelListDTO);

    PageReturnResult<ModelEntity> filterModel(FilterModelDTO filterModelDTO);

    boolean disableModel(String modelID);

    boolean enableModel(String modelID);

    Boolean updateModelDoc(String modelID, MultipartFile docFile);

    PageReturnResult<ModelEntity> getHomepageContent(String orderType, Integer currentPage, Integer pageSize, String name);
}
